/**
 * User: alesj
 * Date: 2005.3.11
 * Time: 14:51:31
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.generalynx.ecos.data.types;


/**
 * Implementors of <tt>PersistentEnum</tt> are enumerated types persisted to
 * the database as <tt>SMALLINT</tt>s or <tt>VARCHAR</tt>s. As well as implementing <tt>toSwitchCode()</tt>,
 * a <tt>PersistentEnum</tt> must also provide a static method with the
 * signature:<br>
 * <br>
 * 		<tt>public static PersistentEnum fromSwitchCode(Object code)</tt>
 *
 * @author Gavin King
 * @author Ales Justin
 */
public interface PersistentEnum {

    public Object toSwitchCode();

}
